public class HomeWork04_01{
    public static void main(String[] args){
        int ans = 0;
        for(int i = 1; i <= 100; i += 2){
            ans += i;
        }
        System.out.println("1~100奇数的和：" + ans);
    }
}